-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
Added solution to Project Euler problem 301 #3343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Travis tests have failedHey @KumarUniverse, TravisBuddy Request Identifier: a4930340-0f15-11eb-9bff-abeacd856cb9 |
Travis tests have failedHey @KumarUniverse, TravisBuddy Request Identifier: 049676d0-0f1d-11eb-9bff-abeacd856cb9 |
Travis tests have failedHey @KumarUniverse, TravisBuddy Request Identifier: a271fe60-0f1d-11eb-9bff-abeacd856cb9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missclick
Travis tests have failedHey @KumarUniverse, TravisBuddy Request Identifier: 1bb3c3d0-0f23-11eb-9bff-abeacd856cb9 |
Why does the pre-commit run keep failing? The log says isort failed but I don't know what that means. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I renamed my lossCount variable to loss_count. Can you review it please?
BROKEN BUILD: Fix a failing precommit test (#3344)
I managed to pass all 3 checks and made the requested changes. Can you please accept my pull request? Thank you. |
I made the final commits to my pull request. Please accept my pull request. Thank you! |
Your solution is taking 3 minutes to run. You need to optimize it to bring it down to seconds. Try not to use brute force in here as time complexity do matter. https://travis-ci.com/github/TheAlgorithms/Python/jobs/400702745#L243
|
I have optimized my solution and committed the changes @dhruvmanila. |
I have made the requested changes to the code @dhruvmanila. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution!
Changes have been implemented.
* Added solution to Project Euler problem 301 * Added newline to end of file * Fixed formatting and tests * Changed lossCount to loss_count * Fixed default parameter value for solution * Removed helper function and modified print stmt * Fixed code formatting * Optimized solution from O(n^2) to O(1) constant time * Update sol1.py
* Added solution to Project Euler problem 301 * Added newline to end of file * Fixed formatting and tests * Changed lossCount to loss_count * Fixed default parameter value for solution * Removed helper function and modified print stmt * Fixed code formatting * Optimized solution from O(n^2) to O(1) constant time * Update sol1.py
* Added solution to Project Euler problem 301 * Added newline to end of file * Fixed formatting and tests * Changed lossCount to loss_count * Fixed default parameter value for solution * Removed helper function and modified print stmt * Fixed code formatting * Optimized solution from O(n^2) to O(1) constant time * Update sol1.py
* Added solution to Project Euler problem 301 * Added newline to end of file * Fixed formatting and tests * Changed lossCount to loss_count * Fixed default parameter value for solution * Removed helper function and modified print stmt * Fixed code formatting * Optimized solution from O(n^2) to O(1) constant time * Update sol1.py
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}
.